// 在路由元信息meta中设置页面的标题及其他信息
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/layouts/BasicLayout'),
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/Home'),
        meta: { title: '首页', showTabbar: true }
      },
      {
        path: '/approve',
        name: 'Approve',
        component: () => import('@/views/Approve'),
        meta: { title: '审批', showTabbar: true }
      },
      {
        path: '/information',
        name: 'Information',
        component: () => import('@/views/Information'),
        meta: { title: '资讯', showTabbar: true }
      },
      {
        path: '/mine',
        name: 'Mine',
        component: () => import('@/views/Mine'),
        meta: { title: '我的', showTabbar: true }
      },
      {
        path: '/detail',
        name: 'Detail',
        component: () => import('@/views/Detail'),
        meta: { title: '详情' }
      },
      {
        path: '/test',
        name: 'Test',
        component: () => import('@/views/Test'),
        meta: { title: '跨层级返回' }
      }
    ]
  }
]
